api view wrapper django

37

from rest_framework.decorators import api_view

@api_view()
def hello_world(request):
    return Response({"message": "Hello, world!"})

Comments

Submit
0 Comments